﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ValidationFramework.Configuration.Fluent;

namespace ValidationFramework.Specifications
{
	public class IsRequiredConfigurationStep<TValidating> : DefaultSpecificationConfigurationStep<IsRequiredSpec<TValidating>, TValidating>
	{
		public IsRequiredConfigurationStep(RuleCreationStep<TValidating> fluentContext, IsRequiredSpec<TValidating> Specification)
			: base(fluentContext, Specification)
		{
		}


		public IsRequiredConfigurationStep<TValidating> AndIsNot(TValidating initialValue)
		{
			Specification.InitialValue = initialValue;
			return this;
		}
	}
}
